<ol class="breadcrumb">
  <li class="breadcrumb-item">{{t "controllers" }}</li>
  <li class="breadcrumb-item" {{#if controller.deprecated}}
        class="breadcrumb-item deprecated-name"
    {{/if}}>{{controller.name}}</li>
</ol>

<ul class="nav nav-tabs" role="tablist">
    {{#each navTabs}}
        <li class="nav-item">
            <a href="{{this.href}}" 
                class="nav-link"
                {{#compare @index "===" 0}}class="nav-link active"{{/compare}}
                role="tab" id="{{this.id}}-tab" data-bs-toggle="tab" data-link="{{this.data-link}}">{{t this.label}}</a>
        </li>
    {{/each}}
</ul>

<div class="tab-content">
    {{#isTabEnabled navTabs "info"}}
    <div class="tab-pane fade {{#isInitialTab navTabs "info"}}active in{{/isInitialTab}}" id="info">
        {{#unless disableFilePath}}
        <p class="comment">
            <h3>{{t "file" }}</h3>
        </p>
        <p class="comment">
            <code>{{controller.file}}</code>
        </p>
        {{/unless}}
        {{#if controller.prefix}}
            <p class="comment">
                <h3>{{t "prefix" }}</h3>
            </p>
            <p class="comment">
                <code>{{controller.prefix}}</code>
            </p>
        {{/if}}

        {{#if controller.deprecated}}
            <p class="comment">
                <h3 class="deprecated">{{t "deprecated" }}</h3>
            </p>
            <p class="comment">
                {{{ controller.deprecationMessage }}}
            </p>
        {{/if}}

        {{#if controller.description}}
            <p class="comment">
                <h3>{{t "description" }}</h3>
            </p>
            <p class="comment">
                {{{parseDescription controller.description depth}}}
            </p>
        {{/if}}

        {{#if controller.extends}}
            <p class="comment">
                <h3>{{t "extends" }}</h3>
            </p>
            <p class="comment">
                {{#each controllerextends}}
                    {{> link-type type=this }}
                {{/each}}
            </p>
        {{/if}}

        {{#if controller.implements}}
            <p class="comment">
                <h3>{{t "implements" }}</h3>
            </p>
            <p class="comment">
                {{#each controller.implements}}
                    {{> link-type type=this}}
                {{/each}}
            </p>
        {{/if}}

        {{#if controller.jsdoctags}}
            <p class="comment">
                <h3>{{t "example" }}</h3>
            </p>
            <div class="io-description">
                {{#jsdoc-code-example controller.jsdoctags}}
                    {{#each tags}}
                        <div>
                            {{{comment}}}
                        </div>
                    {{/each}}
                {{/jsdoc-code-example}}
            </div>
        {{/if}}

        {{#orLength controller.methodsClass}}
            {{> index methods=controller.methodsClass}}
        {{/orLength}}

        {{#if controller.methodsClass}}
            {{> block-method methods=controller.methodsClass file=controller.file }}
        {{/if}}
    </div>
    {{/isTabEnabled}}

    {{#isTabEnabled navTabs "readme"}}
    <div class="tab-pane fade {{#isInitialTab navTabs "readme"}}active in{{/isInitialTab}}" id="readme">
        <p>{{{controller.readme}}}</p>
    </div>
    {{/isTabEnabled}}

    {{#isTabEnabled navTabs "source"}}
    <div class="tab-pane fade {{#isInitialTab navTabs "source"}}active in{{/isInitialTab}} tab-source-code" id="source">
        <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">{{ controller.sourceCode}}</code></pre>
    </div>
    {{/isTabEnabled}}
</div>
